package com.zk.service;

import com.zk.po.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author kun
 * @since 2022-06-08
 */
public interface UserService extends IService<User> {


    //注册用户
    boolean addUser(String nickname, String username, String password, String email);

    //登录用户
    User loginUser(String username, String password);

    //获取用户信息
    User getUserData(String id);

    //根据用户名查用户
    User findUserByUsername(String username);

    //根据昵称查用户
    User findUserByNickname(String nickname);

}
